Returns a
CompositePredicateDescription which represents a conditional OR operation.
Syntax
Parameters
- predicateDescriptions
Example
C# | Copy Code |
---|
var mgr = new DomainModelEntityManager();
var expr1 = new PredicateDescription(typeof(Customer), "Country", FilterOperator.IsEqualTo, "Mexico");
var expr2 = new PredicateDescription(typeof(Customer), "CompanyName", FilterOperator.StartsWith, "A");
// Where companyname starts with A or country = mexico
var finalcrit = PredicateBuilder.Or(expr1, expr2);
var query = mgr.Customers.Where(finalcrit);
var list = query.ToList(); |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also